<%@page language="java" isELIgnored="false" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<jsp:directive.include file="/WEB-INF/sitemesh-decorators/include.jsp"/>
<fmt:setBundle basename="bundles.thesis-resources"/>
<html>
<head>
<title>View <fmt:message key="thesis.title"/></title>
</head>
<body>
<div id="contentarea">      
	<div id="lb"><div id="rb"><div id="bb"><div id="blc">
	<div id="brc"><div id="tb"><div id="tlc"><div id="trc">
		<div id="content">
			<h1><fmt:message key="thesis.title"/> Details</h1>
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/indexThesis"><span><img src="includes/images/icons/back.gif" /><fmt:message key="navigation.back"/></span></a></div>	
			<table cellpadding="0" cellspacing="0" id="viewTable">
				<tbody>
					<tr>
						<td class="label" valign="top">
							<fmt:message key="thesis.thesisid.title"/>:
						</td>
						<td>
							${thesis.thesisId}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td class="label" valign="top">
							<fmt:message key="thesis.title.title"/>:
						</td>
						<td>
							${thesis.title}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td class="label" valign="top">
							<fmt:message key="thesis.abstract_.title"/>:
						</td>
						<td>
							${thesis.abstract_}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td class="label" valign="top">
							<fmt:message key="thesis.proposalattempts.title"/>:
						</td>
						<td>
							${thesis.proposalAttempts}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td class="label" valign="top">
							<fmt:message key="thesis.defenseattempts.title"/>:
						</td>
						<td>
							${thesis.defenseAttempts}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td class="label" valign="top">
							<fmt:message key="thesis.startdate.title"/>:
						</td>
						<td>
							<fmt:formatDate dateStyle="short" type="both" value="${thesis.startDate.time}"/>
						&nbsp;
						</td>
					</tr>
					<tr>
						<td class="label" valign="top">
							<fmt:message key="thesis.doi.title"/>:
						</td>
						<td>
							${thesis.doi}
						&nbsp;
						</td>
					</tr>
				</tbody>
			</table>
			<div class="clear">&nbsp;</div>
			<div class="spacer">&nbsp;</div>
			<h1><fmt:message key="student.title"/></h1>
					
						<c:if test='${thesis.student != null}'>
			<table cellpadding="0" cellspacing="0" id="viewTable">
				<tbody>
					<tr>
						<td  class="label">
							<fmt:message key="student.studentid.title"/>:
						</td>
						<td>
							${thesis.student.studentId}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td  class="label">
							<fmt:message key="student.nnumber.title"/>:
						</td>
						<td>
							${thesis.student.nnumber}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td  class="label">
							<fmt:message key="student.firstname.title"/>:
						</td>
						<td>
							${thesis.student.firstName}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td  class="label">
							<fmt:message key="student.lastname.title"/>:
						</td>
						<td>
							${thesis.student.lastName}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td  class="label">
							<fmt:message key="student.email.title"/>:
						</td>
						<td>
							${thesis.student.email}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td  class="label">
							<fmt:message key="student.major.title"/>:
						</td>
						<td>
							${thesis.student.major}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td  class="label">
							<fmt:message key="student.graduated.title"/>:
						</td>
						<td>
							${thesis.student.graduated}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td  class="label">
							<fmt:message key="student.currentposition.title"/>:
						</td>
						<td>
							${thesis.student.currentPosition}
						&nbsp;
						</td>
					</tr>
					<tr>
						<td  class="label">
							<fmt:message key="student.yeargraduated.title"/>:
						</td>
						<td>
							${thesis.student.yearGraduated}
						&nbsp;
						</td>
					</tr>
				</tbody>
			</table>
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/editThesisStudent?thesis_thesisId=${thesis.thesisId}&student_studentId=${thesis.student.studentId}&"><span><img src="includes/images/icons/edit.gif" /><fmt:message key="navigation.edit"/></span></a></div>
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/confirmDeleteThesisStudent?thesis_thesisId=${thesis.thesisId}&related_student_studentId=${thesis.student.studentId}&"><span><img src="includes/images/icons/delete.gif" /><fmt:message key="navigation.delete"/></span></a></div>
						</c:if>
						<c:if test='${thesis.student == null}'>
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/newThesisStudent?thesis_thesisId=${thesis.thesisId}&"><span><img src="includes/images/icons/new.gif" /><fmt:message key="navigation.new"/> <fmt:message key="student.title"/></span></a></div>
						</c:if>
			<div class="clear">&nbsp;</div>
			<div class="spacer">&nbsp;</div>
			<h1><fmt:message key="thesiscommittee.title"/></h1>
					
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/thesis/newThesisThesiscommittees?thesis_thesisId=${thesis.thesisId}&"><span><img src="${pageContext.request.contextPath}/images/icons/new.gif" /><fmt:message key="navigation.new"/> <fmt:message key="thesiscommittee.title"/></span></a></div>
			<table cellpadding="0" cellspacing="0" id="viewTable">
				<thead>
					<tr>
						<th class="thead">&nbsp;</th>
						<th class="thead"><fmt:message key="thesiscommittee.thesiscommitteeid.title"/></th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${thesis.thesiscommittees}" var="current"  varStatus="i">	
						<c:choose>
							<c:when test="${(i.count) % 2 == 0}">
					    		<c:set var="rowclass" value="rowtwo"/>
							</c:when>
							<c:otherwise>
					    		<c:set var="rowclass" value="rowone"/>
							</c:otherwise>
						</c:choose>
					<tr class="${rowclass}">
						<td nowrap="nowrap">
							<a title="<fmt:message key="navigation.view" />" href="${pageContext.request.contextPath}/selectThesisThesiscommittees?thesis_thesisId=${thesis.thesisId}&thesiscommittees_thesisCommitteeId=${current.thesisCommitteeId}&"><img src="includes/images/icons/view.gif" /></a>
							<a title="<fmt:message key="navigation.edit" />" href="${pageContext.request.contextPath}/editThesisThesiscommittees?thesis_thesisId=${thesis.thesisId}&thesiscommittees_thesisCommitteeId=${current.thesisCommitteeId}&"><img src="includes/images/icons/edit.gif" /></a>
							<a title="<fmt:message key="navigation.delete" />" href="${pageContext.request.contextPath}/confirmDeleteThesisThesiscommittees?thesis_thesisId=${thesis.thesisId}&related_thesiscommittees_thesisCommitteeId=${current.thesisCommitteeId}&"><img src="includes/images/icons/delete.gif" /></a>
						</td>
						<td>
							${current.thesisCommitteeId}
						&nbsp;
						</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
			
			<div class="clear">&nbsp;</div>
			<div class="spacer">&nbsp;</div>
			<h1><fmt:message key="category.title"/></h1>
					
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/thesis/newThesisCategories?thesis_thesisId=${thesis.thesisId}&"><span><img src="${pageContext.request.contextPath}/images/icons/new.gif" /><fmt:message key="navigation.new"/> <fmt:message key="category.title"/></span></a></div>
			<table cellpadding="0" cellspacing="0" id="viewTable">
				<thead>
					<tr>
						<th class="thead">&nbsp;</th>
						<th class="thead"><fmt:message key="category.categoryid.title"/></th>
						<th class="thead"><fmt:message key="category.categorydescription.title"/></th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${thesis.categories}" var="current"  varStatus="i">	
						<c:choose>
							<c:when test="${(i.count) % 2 == 0}">
					    		<c:set var="rowclass" value="rowtwo"/>
							</c:when>
							<c:otherwise>
					    		<c:set var="rowclass" value="rowone"/>
							</c:otherwise>
						</c:choose>
					<tr class="${rowclass}">
						<td nowrap="nowrap">
							<a title="<fmt:message key="navigation.view" />" href="${pageContext.request.contextPath}/selectThesisCategories?thesis_thesisId=${thesis.thesisId}&categories_categoryId=${current.categoryId}&"><img src="includes/images/icons/view.gif" /></a>
							<a title="<fmt:message key="navigation.edit" />" href="${pageContext.request.contextPath}/editThesisCategories?thesis_thesisId=${thesis.thesisId}&categories_categoryId=${current.categoryId}&"><img src="includes/images/icons/edit.gif" /></a>
							<a title="<fmt:message key="navigation.delete" />" href="${pageContext.request.contextPath}/confirmDeleteThesisCategories?thesis_thesisId=${thesis.thesisId}&related_categories_categoryId=${current.categoryId}&"><img src="includes/images/icons/delete.gif" /></a>
						</td>
						<td>
							${current.categoryId}
						&nbsp;
						</td>
						<td>
							${current.categoryDescription}
						&nbsp;
						</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
			
			<div class="clear">&nbsp;</div>
			<div class="spacer">&nbsp;</div>
			<h1><fmt:message key="thesistool.title"/></h1>
					
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/thesis/newThesisThesistools?thesis_thesisId=${thesis.thesisId}&"><span><img src="${pageContext.request.contextPath}/images/icons/new.gif" /><fmt:message key="navigation.new"/> <fmt:message key="thesistool.title"/></span></a></div>
			<table cellpadding="0" cellspacing="0" id="viewTable">
				<thead>
					<tr>
						<th class="thead">&nbsp;</th>
						<th class="thead"><fmt:message key="thesistool.thesistoolid.title"/></th>
						<th class="thead"><fmt:message key="thesistool.tooldescription.title"/></th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${thesis.thesistools}" var="current"  varStatus="i">	
						<c:choose>
							<c:when test="${(i.count) % 2 == 0}">
					    		<c:set var="rowclass" value="rowtwo"/>
							</c:when>
							<c:otherwise>
					    		<c:set var="rowclass" value="rowone"/>
							</c:otherwise>
						</c:choose>
					<tr class="${rowclass}">
						<td nowrap="nowrap">
							<a title="<fmt:message key="navigation.view" />" href="${pageContext.request.contextPath}/selectThesisThesistools?thesis_thesisId=${thesis.thesisId}&thesistools_thesisToolId=${current.thesisToolId}&"><img src="includes/images/icons/view.gif" /></a>
							<a title="<fmt:message key="navigation.edit" />" href="${pageContext.request.contextPath}/editThesisThesistools?thesis_thesisId=${thesis.thesisId}&thesistools_thesisToolId=${current.thesisToolId}&"><img src="includes/images/icons/edit.gif" /></a>
							<a title="<fmt:message key="navigation.delete" />" href="${pageContext.request.contextPath}/confirmDeleteThesisThesistools?thesis_thesisId=${thesis.thesisId}&related_thesistools_thesisToolId=${current.thesisToolId}&"><img src="includes/images/icons/delete.gif" /></a>
						</td>
						<td>
							${current.thesisToolId}
						&nbsp;
						</td>
						<td>
							${current.toolDescription}
						&nbsp;
						</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
			
			<div class="clear">&nbsp;</div>
			<div class="spacer">&nbsp;</div>
			<h1><fmt:message key="generatedproduct.title"/></h1>
					
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/thesis/newThesisGeneratedproducts?thesis_thesisId=${thesis.thesisId}&"><span><img src="${pageContext.request.contextPath}/images/icons/new.gif" /><fmt:message key="navigation.new"/> <fmt:message key="generatedproduct.title"/></span></a></div>
			<table cellpadding="0" cellspacing="0" id="viewTable">
				<thead>
					<tr>
						<th class="thead">&nbsp;</th>
						<th class="thead"><fmt:message key="generatedproduct.generatedproductid.title"/></th>
						<th class="thead"><fmt:message key="generatedproduct.productname.title"/></th>
						<th class="thead"><fmt:message key="generatedproduct.productdescription.title"/></th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${thesis.generatedproducts}" var="current"  varStatus="i">	
						<c:choose>
							<c:when test="${(i.count) % 2 == 0}">
					    		<c:set var="rowclass" value="rowtwo"/>
							</c:when>
							<c:otherwise>
					    		<c:set var="rowclass" value="rowone"/>
							</c:otherwise>
						</c:choose>
					<tr class="${rowclass}">
						<td nowrap="nowrap">
							<a title="<fmt:message key="navigation.view" />" href="${pageContext.request.contextPath}/selectThesisGeneratedproducts?thesis_thesisId=${thesis.thesisId}&generatedproducts_generatedProductId=${current.generatedProductId}&"><img src="includes/images/icons/view.gif" /></a>
							<a title="<fmt:message key="navigation.edit" />" href="${pageContext.request.contextPath}/editThesisGeneratedproducts?thesis_thesisId=${thesis.thesisId}&generatedproducts_generatedProductId=${current.generatedProductId}&"><img src="includes/images/icons/edit.gif" /></a>
							<a title="<fmt:message key="navigation.delete" />" href="${pageContext.request.contextPath}/confirmDeleteThesisGeneratedproducts?thesis_thesisId=${thesis.thesisId}&related_generatedproducts_generatedProductId=${current.generatedProductId}&"><img src="includes/images/icons/delete.gif" /></a>
						</td>
						<td>
							${current.generatedProductId}
						&nbsp;
						</td>
						<td>
							${current.productName}
						&nbsp;
						</td>
						<td>
							${current.productDescription}
						&nbsp;
						</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
			
			<div class="clear">&nbsp;</div>
			<div class="spacer">&nbsp;</div>
			<h1><fmt:message key="thesisstatus.title"/></h1>
					
			<div class="navitem"><a class="button" href="${pageContext.request.contextPath}/thesis/newThesisThesisstatuses?thesis_thesisId=${thesis.thesisId}&"><span><img src="${pageContext.request.contextPath}/images/icons/new.gif" /><fmt:message key="navigation.new"/> <fmt:message key="thesisstatus.title"/></span></a></div>
			<table cellpadding="0" cellspacing="0" id="viewTable">
				<thead>
					<tr>
						<th class="thead">&nbsp;</th>
						<th class="thead"><fmt:message key="thesisstatus.thesisstatusid.title"/></th>
						<th class="thead"><fmt:message key="thesisstatus.proposed.title"/></th>
						<th class="thead"><fmt:message key="thesisstatus.proposaldate.title"/></th>
						<th class="thead"><fmt:message key="thesisstatus.defended.title"/></th>
						<th class="thead"><fmt:message key="thesisstatus.defensedate.title"/></th>
						<th class="thead"><fmt:message key="thesisstatus.proposalpass.title"/></th>
						<th class="thead"><fmt:message key="thesisstatus.defensepass.title"/></th>
						<th class="thead"><fmt:message key="thesisstatus.comments.title"/></th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${thesis.thesisstatuses}" var="current"  varStatus="i">	
						<c:choose>
							<c:when test="${(i.count) % 2 == 0}">
					    		<c:set var="rowclass" value="rowtwo"/>
							</c:when>
							<c:otherwise>
					    		<c:set var="rowclass" value="rowone"/>
							</c:otherwise>
						</c:choose>
					<tr class="${rowclass}">
						<td nowrap="nowrap">
							<a title="<fmt:message key="navigation.view" />" href="${pageContext.request.contextPath}/selectThesisThesisstatuses?thesis_thesisId=${thesis.thesisId}&thesisstatuses_thesisStatusId=${current.thesisStatusId}&"><img src="includes/images/icons/view.gif" /></a>
							<a title="<fmt:message key="navigation.edit" />" href="${pageContext.request.contextPath}/editThesisThesisstatuses?thesis_thesisId=${thesis.thesisId}&thesisstatuses_thesisStatusId=${current.thesisStatusId}&"><img src="includes/images/icons/edit.gif" /></a>
							<a title="<fmt:message key="navigation.delete" />" href="${pageContext.request.contextPath}/confirmDeleteThesisThesisstatuses?thesis_thesisId=${thesis.thesisId}&related_thesisstatuses_thesisStatusId=${current.thesisStatusId}&"><img src="includes/images/icons/delete.gif" /></a>
						</td>
						<td>
							${current.thesisStatusId}
						&nbsp;
						</td>
						<td>
							${current.proposed}
						&nbsp;
						</td>
						<td>
							<fmt:formatDate dateStyle="short" type="both" value="${current.proposalDate.time}"/>
						&nbsp;
						</td>
						<td>
							${current.defended}
						&nbsp;
						</td>
						<td>
							<fmt:formatDate dateStyle="short" type="both" value="${current.defenseDate.time}"/>
						&nbsp;
						</td>
						<td>
							${current.proposalPass}
						&nbsp;
						</td>
						<td>
							${current.defensePass}
						&nbsp;
						</td>
						<td>
							${current.comments}
						&nbsp;
						</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
			
			<div class="clear">&nbsp;</div>
		</div>
	</div></div></div></div>
	</div></div></div></div>
</div>
</body>
</html>